package com.zxg.zbc.dal.dao;

import com.zxg.zbc.dal.dao.exception.DAOException;
import com.zxg.zbc.dal.dataobject.User;
import com.zxg.zbc.dal.query.CommonQuery;


/**
 * 
 * @author HangDing   
 *
 * 2014年1月1日
 */
public interface UserDao {

	public User getUserByMobile(String mobile)
			throws DAOException;

	public User getUserBySign(String sign)
			throws DAOException;
	
	public User getUserById(Long id)
	throws DAOException;
	
	public long insertUser(User user) throws DAOException;

	public long updateUser(User user) throws DAOException;
	
	public CommonQuery<User> getUsersByQuery(CommonQuery<User> query)throws DAOException;
	

}
